<template>
	<view class="home">
		<nav-bar title="首页" background="#fff"></nav-bar>
	</view>
</template>
<script>
	import app from '../../App.vue'
	import NavBar from '../../components/nav-bar/nav-bar.vue'
	export default {
		components: {NavBar},
		mounted() {
			console.log('有问题')
			console.log(app.globalData,'状态栏的高度')
		},
		onLoad() {
			console.log('有问题1')
			console.log(app.globalData,'状态栏的高度1')
		}
	}
</script>
<style lang="less"></style>